package cn.bone.motan.chuandian.data;


import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Created by MD-01 on 2017/3/15.
 */
public class TempConfig {

    public static Area me;
    public static List<Area> upAreaes;
    public static List<Area> downAreaes;
    public static RouteData routeData;

    static {
        //本域
        me = new Area();
        me.setName("川店");
        me.setSign("cd.jzq.jz.hb.cn");
        me.setUrl("localhost:1003");

        //上级域
        upAreaes = new ArrayList<>();
        Area jzq = new Area();
        jzq.setName("荆州区");
        jzq.setUrl("localhost:3003");
        jzq.setSign("jzq.jz.hb.cn");
        upAreaes.add(jzq);

        //下级域
        downAreaes = new ArrayList<>();


        //本域数据
        routeData = new RouteData();
        routeData.setType("leaf");
        List<RouteData.LeafRoute> leafRoutes = routeData.getLeafRoutes();
        RouteData.LeafRoute route1 = new RouteData.LeafRoute();
        route1.setUrl("http://www.baidu.com");
        route1.setRouteName("测试线路1");
        route1.setSites(Arrays.asList("天桥","十六楼正门","北二门"));
        leafRoutes.add(route1);
        RouteData.LeafRoute route2 = new RouteData.LeafRoute();
        route2.setUrl("http://www.baidu.com");
        route2.setRouteName("测试线路2");
        route2.setSites(Arrays.asList("绝味鸭脖","当代学生公寓","食堂"));
        leafRoutes.add(route2);
    }

    public static class Area{
        private String name;
        private String sign;
        private String url;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
